package com.yl.auth.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author ln
 * @since 2023-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Fangjianleixing implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
      private Long id;

    /**
     * 类型名称
     */
    private String typeName;

    /**
     * 床位数
     */
    private String bedNumber;

    /**
     * 房间价格
     */
    private Double price;

    /**
     * 定金
     */
    private Double earnest;

    /**
     * 房情简介
     */
    private String roomDes;

    /**
     * 创建人id
     */
    private Long adminId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createDate;
    /**
     * 关联房间数
     */
    @TableField(exist = false)
    @ApiModelProperty("关联房间数")
    private Integer count;
    /**
     * 创建人名字
     */
    @TableField(exist = false)
    @ApiModelProperty("创建人名字")
    private String aname;
    /**
     *
     */
    @TableField(exist = false)
    @ApiModelProperty("判断是否关联房间")
    private Integer leixingcount;
}
